﻿using System.Web;
using System.Web.Profile;

namespace Meotom.Upload.v2.Data.BLL
{
    public class WProfile: ProfileBase
    {
        public UserInfo UserInfo
        {
            get { return (UserInfo)GetPropertyValue("UserInfo"); }
        }

        public static WProfile GetProfile()
        {
            return (WProfile)HttpContext.Current.Profile;
        }

        public static WProfile GetProfile(string userName)
        {
            return (WProfile)Create(userName);
        }  
    }
}
